package com.ktwlsoft.fundmanage.fundFlow.processHandler;

import com.ktwlsoft.fundmanage.domain.business.FundInService;
import com.ktwlsoft.fundmanage.domain.business.FundOutService;
import lombok.Getter;
import lombok.Setter;
import org.activiti.engine.delegate.Expression;
import org.activiti.engine.delegate.JavaDelegate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author LanJian
 */
public abstract class BaseServiceTask implements JavaDelegate{

	@Autowired
	@Getter
	protected FundInService fundInService;

	@Getter
	@Autowired
	protected FundOutService fundOutService;

	@Getter
	@Setter
	protected Expression sql;

	@Getter
	@Setter
	protected Expression result;

	protected boolean doContinue=false;

	protected Logger logger = LoggerFactory.getLogger(BaseServiceTask.class);

	public BaseServiceTask(){
		this.doContinue = false;
	}

	public boolean isDoContinue() {
		return doContinue;
	}

	public void setDoContinue(boolean doContinue) {
		this.doContinue = doContinue;
	}
}
